﻿#region Imports
using System.ComponentModel;
using System.Windows.Controls;
using System.Windows;
using System;
#endregion

namespace CheckerWPF.UserControls
{
    /// <summary>
    /// Interaction logic for uclOptionChecker.xaml
    /// </summary>
    public partial class uclOptionChecker : UserControl, INotifyPropertyChanged
    {
        #region Constructors
        public uclOptionChecker()
        {
            InitializeComponent();
        }
        #endregion

        #region Properties
        private int checkerHeight;
        public int CheckerHeight
        {
            get { return checkerHeight; }
            set { checkerHeight = value; RaisePropertyChanged("CheckerHeight"); }
        }

        private int checkeWidth;
        public int CheckeWidth
        {
            get { return checkeWidth; }
            set { checkeWidth = value; RaisePropertyChanged("CheckeWidth"); }
        }

        private string checkerText;
        public string CheckerText
        {
            get { return !String.IsNullOrEmpty(checkerText) ? checkerText : "Checker"; }
            set { checkerText = value; RaisePropertyChanged("CheckerText"); }
        }

        private string optionY;
        public string OptionY
        {
            get { return !String.IsNullOrEmpty(optionY) ? optionY : "&Yes"; }
            set { optionY = value; RaisePropertyChanged("OptionY"); }
        }

        private string optionN;
        public string OptionN
        {
            get { return !String.IsNullOrEmpty(optionN) ? optionN : "&No"; }
            set { optionN = value; RaisePropertyChanged("OptionN"); }
        }
        #endregion

        public event PropertyChangedEventHandler PropertyChanged;
        protected void RaisePropertyChanged(string name)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(name));
            }
        }

        //public event RoutedEventHandler reh;
        private void chkOption_Checked(object sender, RoutedEventArgs e)
        {

        }
    }
}
